﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TbShop.Web.Helpers
{
    public static class StringFormatHelper
    {
        public static string Format(this string data)
        {
            return string.IsNullOrEmpty(data) ? "/" : data;
        }

        public static string Format(this int? data)
        {
            return !data.HasValue ? "/" : data.Value.ToString();
        }

        public static string Format(this bool? data)
        {
            return !data.HasValue ? "/" : data.Value.ToString();
        }
    }
}